Skip to main content

SmartAgent Version 10.4.2

Release Date: October 19, 2026

Version Overview​

SmartAgent 10.4.2 is a 10.4.x maintenance release. It integrates JavaAgent 9.17.2 and PythonAgent 8.9.1. JavaAgent improves bytecode instrumentation handling of the MethodParameters attribute. PythonAgent fixes database connections that were not recycled because the WSGI response wrapper did not call close().

  • 🔧 JavaAgent 9.17.2: Improved bytecode instrumentation handling of the MethodParameters attribute
  • 🔧 PythonAgent 8.9.1: Fixed database connections not being recycled because the WSGI response wrapper did not call close() correctly (affects: PythonAgent 8.7.0 ~ 8.9.0, SmartAgent 10.0.0 ~ 10.4.1; Linux / ARM64)
Compatibility notice (not a JavaAgent defect; this is a JDK bug)

On specific JDKs, attaching the agent or dynamically delivering monitoring rules can cause the JVM to drop method parameter names (real names degrade to arg0, arg1). If business logic depends on parameter names at runtime, this can cause exceptions or logic errors.

Affected scenarios

  • Spring Cache (most common): @Cacheable(key = "#userId") cannot resolve arguments and reports Null key returned for cache operation or cannot be found on null
  • SpEL authorization/condition expressions: annotations such as @PreAuthorize("#id == ...") and @EventListener cannot read arguments by name
  • Parameter binding without an explicit name: annotation binding that relies on parameter-name reflection may fail

Root cause

Known JVM defect JDK-8240908: the MethodParameters attribute is lost during class retransformation (Retransform).

Environment compatibility

❌ Affected (at risk):

  • JDK 8 / 11 (all builds)
  • Oracle JDK 17 (verified unfixed on 17.0.13 ~ 17.0.20.1 and similar builds)

✅ Works (fixed):

  • JDK 21 and above (all vendors; fixed upstream)
  • Eclipse Temurin (OpenJDK) 17.0.20.1+1 and later community builds

Recommendations

  1. Environment upgrade (recommended; fully resolves the issue): upgrade to JDK 21+, or on JDK 17 switch to the fixed Eclipse Temurin JDK 17.0.20.1+1.
  2. Code workaround (no environment change):
    • In SpEL, use parameter indexes. For example, change key = "#userId" to key = "#p0" (#p0 is the first argument).
    • Declare parameter names explicitly on annotations (for example @RequestParam("name") and MyBatis @Param("name")) instead of relying on runtime parameter-name reflection.
Upgrade Recommendation
  • Environments using Python WSGI where database connections are not recycled (PythonAgent 8.7.0 ~ 8.9.0 / SmartAgent 10.0.0 ~ 10.4.1) should upgrade to this version;
  • If the application depends on method parameter names (Spring Cache, SpEL, or parameter-name reflection) and runs on JDK 8/11 or an unfixed Oracle JDK 17, follow the compatibility notice above to upgrade the JDK or rewrite expressions. This is not a JavaAgent defect.

Linux x86_64 System​

Supported Platform Versions​

  • One Platform: V2.2.2 and above

Integrated Agent Versions​

  • JavaAgent: 9.17.2
  • DotnetAgent: 6.16.3
  • PHPAgent: 8.7.1
  • PythonAgent: 8.9.1
  • NodejsAgent: 8.1.0
  • NginxAgent: 3.11.0
  • ApacheAgent: 3.6.0
  • SDKAgent: 5.18.1
  • GoAgent: 5.1.0
  • logsAgent: 3.0.3
  • ebpfagent: 1.8.0

Feature Optimizations and Fixes​

1. JavaAgent Upgraded to 9.17.2​

Feature Optimizations

  • Improved bytecode instrumentation handling of the MethodParameters attribute.

2. PythonAgent Upgraded to 8.9.1​

Bug Fixes

  • Fixed an issue where the Python agent WSGI response wrapper did not call close() correctly, so database connections could not be recycled properly (affects: PythonAgent 8.7.0 ~ 8.9.0, SmartAgent 10.0.0 ~ 10.4.1).
warning

The JDK-8240908 compatibility notice in the version overview applies to this platform. JDK 8/11 (all builds) and Oracle JDK 17 builds verified as unfixed (17.0.13 ~ 17.0.20.1 and similar) may lose method parameter names during dynamic instrumentation. This is not a JavaAgent defect.


Linux ARM64 System​

Supported Platform Versions​

  • One Platform: V2.2.2 and above

Integrated Agent Versions​

  • JavaAgent: 9.17.2
  • DotnetAgent: 6.16.3
  • PHPAgent: 8.7.1
  • PythonAgent: 8.9.1
  • NginxAgent: 3.11.0
  • SDKAgent: 5.18.1
  • GoAgent: 5.1.0
  • logsAgent: 3.0.3
  • ebpfagent: 1.8.0

Feature Optimizations and Fixes​

Platform Notes

Changes on this platform match Linux x86_64, including JavaAgent 9.17.2 and PythonAgent 8.9.1.

Notes

  • ARM64 does not currently support NodejsAgent or ApacheAgent

1. JavaAgent Upgraded to 9.17.2​

Feature Optimizations

  • Improved bytecode instrumentation handling of the MethodParameters attribute.

2. PythonAgent Upgraded to 8.9.1​

Bug Fixes

  • Fixed an issue where the Python agent WSGI response wrapper did not call close() correctly, so database connections could not be recycled properly (affects: PythonAgent 8.7.0 ~ 8.9.0, SmartAgent 10.0.0 ~ 10.4.1).
warning

The JDK-8240908 compatibility notice in the version overview applies to this platform.


Windows x86_64 Platform​

Supported Platform Versions​

  • One Platform: V2.2.2 and above

Integrated Agent Versions​

  • JavaAgent: 9.17.2
  • DotnetAgent: 6.16.3
  • ApacheAgent: 3.6.0
  • SDKAgent: 5.18.1
  • logsAgent: 3.0.3

Feature Optimizations and Fixes​

1. JavaAgent Upgraded to 9.17.2​

Feature Optimizations

  • Improved bytecode instrumentation handling of the MethodParameters attribute.
Platform Notes

This Windows release has no PythonAgent changes (PythonAgent is not integrated on Windows).

warning

The JDK-8240908 compatibility notice in the version overview applies to this platform.


Compatibility Notes​

Platform Compatibility​

Operating SystemSupported ArchitectureMinimum One Version
Linuxx86_64V2.2.2
LinuxARM64V2.2.2
Windowsx86_64V2.2.2